<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>PowerVR SDK</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
<table width="100%">
  <tr>
    <td width="33%">
      <p align="left">&nbsp;<a href="http://www.imgtec.com"><img border="0" src="IMGLogo.jpg" width="200" height="30"></a></p>
    </td>
    <td width="33%">
      <p align="center"><font color="#808080" face="Arial" size="2">PowerVR Software Development Kit</a></font></p>
    </td>
    <td width="34%">
      <p align="right"><a href="http://www.powervr.com"><img border="0" src="PVRlogo.jpg" width="200" height="27"></a></p>
    </td>
  </tr>
</table>
<hr>
</head><body>
<!-- Generated by Doxygen 1.3.6 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
<h1>OptionsMenu.h</h1><a href="OptionsMenu_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/******************************************************************************</span>
00002 <span class="comment"></span>
00003 <span class="comment"> @File         OptionsMenu.h</span>
00004 <span class="comment"></span>
00005 <span class="comment"> @Title        PODPLayer Options</span>
00006 <span class="comment"></span>
00007 <span class="comment"> @Version      </span>
00008 <span class="comment"></span>
00009 <span class="comment"> @Copyright    Copyright (C)  Imagination Technologies Limited.</span>
00010 <span class="comment"></span>
00011 <span class="comment"> @Platform     OS/API Independent</span>
00012 <span class="comment"></span>
00013 <span class="comment"> @Description  Options menu for PVREngine apps</span>
00014 <span class="comment"></span>
00015 <span class="comment">******************************************************************************/</span>
00016 
00017 <span class="preprocessor">#ifndef OPTIONSMENU_H</span>
00018 <span class="preprocessor"></span><span class="preprocessor">#define OPTIONSMENU_H</span>
00019 <span class="preprocessor"></span>
00020 <span class="comment">/******************************************************************************</span>
00021 <span class="comment">Includes</span>
00022 <span class="comment">******************************************************************************/</span>
00023 
00024 <span class="preprocessor">#include "<a class="code" href="Globals_8h.html">Globals.h</a>"</span>
00025 <span class="preprocessor">#include "<a class="code" href="Option_8h.html">Option.h</a>"</span>
00026 
00027 <span class="keyword">namespace </span>pvrengine
00028 {
00029     <span class="keyword">class </span>TimeController;
00030 
00031     <span class="comment">/*!***************************************************************************</span>
00032 <span class="comment">    * @Class OptionsMenu</span>
00033 <span class="comment">    * @Brief Options menu for PODPlayer.</span>
00034 <span class="comment">    * @Description Options menu for PODPlayer.</span>
00035 <span class="comment">    *****************************************************************************/</span>
00036     <span class="keyword">class </span>OptionsMenu
<a name="l00037"></a><a class="code" href="classpvrengine_1_1OptionsMenu.html">00037</a>     {
00038     <span class="keyword">public</span>:
00039     <span class="comment">/*!***************************************************************************</span>
00040 <span class="comment">    @Function           OptionsMenu</span>
00041 <span class="comment">    @Description        blank constructor.</span>
00042 <span class="comment">    *****************************************************************************/</span>
00043         <a class="code" href="classpvrengine_1_1OptionsMenu.html#a0">OptionsMenu</a>(){}
00044 
<a name="l00045"></a><a class="code" href="classpvrengine_1_1OptionsMenu.html#a0">00045</a>     <span class="comment">/*!***************************************************************************</span>
00046 <span class="comment">    @Function           ~OptionsMenu</span>
00047 <span class="comment">    @Description        destructor.</span>
00048 <span class="comment">    *****************************************************************************/</span>
00049         <a class="code" href="classpvrengine_1_1OptionsMenu.html#a1">~OptionsMenu</a>();
00050 
00051     <span class="comment">/*!***************************************************************************</span>
00052 <span class="comment">    @Function           OptionsMenu</span>
00053 <span class="comment">    @Input              pPrint3D    - pointer to print3d</span>
00054 <span class="comment">    @Input              pTimeController - gives time valus for menu animation</span>
00055 <span class="comment">    @Description        basic constructor taking print3d (required for menu).</span>
00056 <span class="comment">    *****************************************************************************/</span>
00057         <a class="code" href="classpvrengine_1_1OptionsMenu.html#a0">OptionsMenu</a>(CPVRTPrint3D* pPrint3D, <a class="code" href="classpvrengine_1_1TimeController.html">TimeController</a> *pTimeController);
00058 
00059     <span class="comment">/*!***************************************************************************</span>
00060 <span class="comment">    @Function           addOption</span>
00061 <span class="comment">    @Input              pOption     a new option to add to the menu</span>
00062 <span class="comment">    @Description        functino to add an option to the menu.</span>
00063 <span class="comment">    *****************************************************************************/</span>
00064         <span class="keywordtype">void</span> <a class="code" href="classpvrengine_1_1OptionsMenu.html#a3">addOption</a>(<a class="code" href="classpvrengine_1_1Option.html">Option</a>* pOption);
00065 
00066     <span class="comment">/*!***************************************************************************</span>
00067 <span class="comment">    @Function           render</span>
00068 <span class="comment">    @Description        Renders the options menu.</span>
00069 <span class="comment">    *****************************************************************************/</span>
00070         <span class="keywordtype">void</span> <a class="code" href="classpvrengine_1_1OptionsMenu.html#a4">render</a>();
00071 
00072     <span class="comment">/*!***************************************************************************</span>
00073 <span class="comment">    @Function           nextValue</span>
00074 <span class="comment">    @Description        Requests next value from the current option.</span>
00075 <span class="comment">    *****************************************************************************/</span>
00076         <span class="keywordtype">void</span>            <a class="code" href="classpvrengine_1_1OptionsMenu.html#a5">nextValue</a>();
00077 
00078     <span class="comment">/*!***************************************************************************</span>
00079 <span class="comment">    @Function           prevValue</span>
00080 <span class="comment">    @Description        Requests next value from the current option.</span>
00081 <span class="comment">    *****************************************************************************/</span>
00082         <span class="keywordtype">void</span>            <a class="code" href="classpvrengine_1_1OptionsMenu.html#a6">prevValue</a>();
00083 
00084     <span class="comment">/*!***************************************************************************</span>
00085 <span class="comment">    @Function           nextOption</span>
00086 <span class="comment">    @Description        Moves onto next option.</span>
00087 <span class="comment">    *****************************************************************************/</span>
00088         <span class="keywordtype">void</span>            <a class="code" href="classpvrengine_1_1OptionsMenu.html#a7">nextOption</a>();
00089 
00090     <span class="comment">/*!***************************************************************************</span>
00091 <span class="comment">    @Function           prevOption</span>
00092 <span class="comment">    @Description        Moves onto previous option.</span>
00093 <span class="comment">    *****************************************************************************/</span>
00094         <span class="keywordtype">void</span>            <a class="code" href="classpvrengine_1_1OptionsMenu.html#a8">prevOption</a>();
00095 
00096     <span class="comment">/*!***************************************************************************</span>
00097 <span class="comment">    @Function           getValueBool</span>
00098 <span class="comment">    @Description        retrieves boolean value from the current option.</span>
00099 <span class="comment">    *****************************************************************************/</span>
00100         <span class="keywordtype">bool</span>            <a class="code" href="classpvrengine_1_1OptionsMenu.html#a9">getValueBool</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> eOption);
00101 
00102     <span class="comment">/*!***************************************************************************</span>
00103 <span class="comment">    @Function           getValueEnum</span>
00104 <span class="comment">    @Description        retrieves enum value from the current option.</span>
00105 <span class="comment">    *****************************************************************************/</span>
00106         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>    <a class="code" href="classpvrengine_1_1OptionsMenu.html#a10">getValueEnum</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> eOption);
00107 
00108     <span class="comment">/*!***************************************************************************</span>
00109 <span class="comment">    @Function           getValueInt</span>
00110 <span class="comment">    @Description        retrieves int value from the current option.</span>
00111 <span class="comment">    *****************************************************************************/</span>
00112         <span class="keywordtype">int</span>             <a class="code" href="classpvrengine_1_1OptionsMenu.html#a11">getValueInt</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> eOption);
00113 
00114     <span class="comment">/*!***************************************************************************</span>
00115 <span class="comment">    @Function           getValueFloat</span>
00116 <span class="comment">    @Description        retrieves float value from the current option.</span>
00117 <span class="comment">    *****************************************************************************/</span>
00118         <span class="keywordtype">float</span>           <a class="code" href="classpvrengine_1_1OptionsMenu.html#a12">getValueFloat</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> eOption);
00119 
00120     <span class="keyword">private</span>:
00121         CPVRTPrint3D        *m_pPrint3D;        
00122         <a class="code" href="classpvrengine_1_1TimeController.html">TimeController</a>      *m_pTimeController; 
00123         <a class="code" href="classdynamicArray.html">dynamicArray&lt;Option*&gt;</a> m_daOptions;      
00124         <span class="keywordtype">int</span> m_i32CurrentOption;                 
00127         VERTTYPE                    m_f32BrightnessMod, m_f32BrightnessModDirection;
00128     };
00129 }
00130 
00131 <span class="preprocessor">#endif // OPTIONSMENU_H</span>
00132 <span class="preprocessor"></span>
00133 <span class="comment">/******************************************************************************</span>
00134 <span class="comment">End of file (OptionsMenu.h)</span>
00135 <span class="comment">******************************************************************************/</span>
00136 
</pre></div><br>
<br>
<P align=left><FONT size=2><STRONG><A 
   href="http://www.imgtec.com/powervr/insider/legal/index.asp">Copyright</A> � 
   1999-2008, Imagination Technologies Ltd.</STRONG></FONT></P>
<hr>
<address style="align: left;"><small><FONT color=f0f>
Generated by <a href="http://www.doxygen.org/index.html">DOXYGEN</a> 1.3.6</small></address>
</body>
</html>
